
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户页面</title>
</head>
<body style="text-align: center">
<h1 style="color: aqua">用户页面</h1>
<a href="/user/signOut">退出登录</a>
<div>
    <p>您的个人信息如下：</p>
    <p> ID:${sessionScope.user.id}</p>
    <p>用户名:${sessionScope.user.username}</p>
</div>

<hr>
<h3 style="color: blue">推荐图书</h3>
<table border="1" style="margin: auto;text-align: center">
    <tr>
        <th>主题</th>
        <th>作者</th>
        <th>发布时间</th>
        <th>操作</th>
    </tr>
    <c:forEach var="book" items="${sessionScope.books}">
        <tr>
            <td>${book.title}</td>
            <td>${book.author}</td>
            <td>${book.publicationTime}</td>
            <td><a href="/book/bookDetail/${book.id}">详情</a></td>
        </tr>
    </c:forEach>

</table>
<hr>
</body>
</html>
